<?php
echo $this->adminToolBar('hotdeals', 'index', '/admin/hotdeals/add/', '/admin/hotdeals/edit/', '/admin/hotdeals/delete/', '');
?>
<?php         
$this->title = "Hot deals";
$this->headTitle($this->title);
?>
<div class="mid-content" id="grid_newsletter"> 
	<table class="box-table-a" width="100%"> 
		<tr>
			<th scope="col" width="40%"><b>Title</b></th>
			<th scope="col" width="40%"><b>Offer period</b></th>
			<th scope="col" width="10%">&nbsp;</th>
			<th scope="col" width="10%">&nbsp;</th>
		</tr>
		<?php 
			foreach($this->hotdeals_arr as $hotdeals_entry) :?>
		<tr>
		    <td valign="top"><?php echo $hotdeals_entry['title']; ?></td>
		    <td><?php echo $hotdeals_entry['offer_valid_from']; ?> - <?php echo $hotdeals_entry['offer_valid_to']; ?></td>
		
		    <td align="center" valign="top">
		        <a href="javascript: void(0);" onclick="loadPage('/admin/hotdeals/edit/id/<?php echo $hotdeals_entry['id']; ?>');" title="Edit"><img src="/images/admin/icons/edit.gif" alt=""/></a>          
		     </td> 
		     <td align="center" valign="top">
		     	<a rel="" onclick="deleteHotdeal('<?php echo $hotdeals_entry['id'];?>')" href="javascript: void(0);"><img src="/images/admin/icons/disable.gif" alt=""/></a>
		     </td>  
		</tr>
		<?php endforeach; ?>
	</table>
</div>
